<ion-view view-title="整车详情" cache-view="true" hide-back-button="false" ng-init="init()">
  <ion-content>
    <section class="g_main">
      <!-- 个人信息 -->
      <section class="my_info my_truck_info">
        <img ng-src="{{vinchelInfo.owner_photo_url}}" alt="">
        <div class="user_info">
          <div class="name"><strong>{{vinchelInfo.name}}</strong><!--span class="icon_star star_{{vinchelInfo.stars}}">{{vinchelInfo.stars}}星</span--></div>
          <div class="company"><!--<i class="icon icon_tag_qi">企业认证</i>--><i class="icon icon_tag_shi">实名认证</i><i class="icon icon_tag_che" ng-show="vinchelInfo.type==1">有车</i><i class="icon icon_tag_ship" ng-show="vinchelInfo.type==2">有船</i><!--i class="icon icon_tag_piao">发票</i> <em>上海环贸物流有限公司</em--></div>
          <p class="truck_number">{{vinchelInfo.vehicle_no}}</p>
        </div>
        <div class="contact_info">
          <a href="tel: {{vinchelInfo.phone}}"><i class="icon icon_tel"></i>电话联系</a>
          <a ng-click="openchat({{'vinchelInfo.owner_id'}}, {{'vinchelInfo.name'}}, {{'vinchelInfo.owner_photo_url'}})"><i class="icon icon_message"></i>在线联系</a>
        </div>
      </section>
      <!-- 个人信息操作面板 -->
      <section class="my_truck_info_list">
        <ul>
          <li><span>装车日期</span><em>{{vinchelInfo.shipment_time.substring(0,10)}}</em></li>
          <li><span>所在位置</span><em>{{vinchelInfo.start_area_disp}}</em></li>
          <li><span>意愿城市</span><em>{{vinchelInfo.end_area_disp}}</em></li>
          <li><span>货物类型</span><em>{{vinchelInfo.cargo_type}}</em></li>
          <li><span ng-show="vinchelInfo.type==1">车型</span><em><span ng-show="vinchelInfo.type==2">船舶类型</span>{{vinchelTypes[vinchelInfo.vehicle_type]}}</em></li>
          <li><span ng-show="vinchelInfo.type==1">车长</span><em><span ng-show="vinchelInfo.type==2">船长</span>{{vehiclelens[vinchelInfo.vehicle_len]}}</em></li>
          <li><span>吨位</span><em>{{vinchelInfo.vehicle_load_disp}}</em></li>
          <li><span>价格</span><em>{{vinchelInfo.price?vinchelInfo.price:'面议'}}</em>{{vinchelInfo.price?'元':''}}</li>
        </ul>
      </section>
      <button ng-show="userInfo.member_type==1 || userInfo.member_type==3" class="btn_shipment openwebview" ng-click="toCreateWayBill()">我要发货</button>
    </section>
  </ion-content>
</ion-view>
